package guestbook;
import javax.jdo.annotations.PersistenceCapable;

/*  this class was created to represent an instance of the toto site
 *  links of statistics
*/
@PersistenceCapable
public class totoStat extends abstractTotoObject{    
	
	//an array which holds the links to the stats from toto site
	private String[] stat;
	
	public totoStat(String[] stat) {        
		this.stat = stat;        
		}    
	public String[] getStat() {        
		return stat;    
		}    
	
	public void setStat(String[] stat) {
		for (int i=0;i<16;i++){
			this.stat[i] = stat[i];  
		}
	}
	
	/*this function writes the array of
	/links as a long string for the wave gadget*/
	public String toString(){
		String result="";
		for (int i=15;i>=0;i--){
			if (i!=0)	result+=this.getStat()[i]+"$";
			else result+=this.getStat()[i];
		}
		return result;
	}
}
